import logging
from htmltestreport import HTMLTestReport
from scripts.test_login import *
from common_ihrm.use_1 import log

suite = unittest.TestSuite()
# 构建加载器
Loader = unittest.TestLoader()
# suite.addTest(unittest.makeSuite(AddCase))
suite.addTests(Loader.discover(r'C:\pythonfile\ihrm\scripts', 'test_emp*.py'))
runner = HTMLTestReport(r'../report/ihrm.html', '测试报告')
log("file", filename="../report/runlog.txt")
logging.info("添加成功")
runner.run(suite)
